/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2025 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32g0xx_ll_adc.h"
#include "stm32g0xx_ll_rcc.h"
#include "stm32g0xx_ll_bus.h"
#include "stm32g0xx_ll_system.h"
#include "stm32g0xx_ll_exti.h"
#include "stm32g0xx_ll_cortex.h"
#include "stm32g0xx_ll_utils.h"
#include "stm32g0xx_ll_pwr.h"
#include "stm32g0xx_ll_dma.h"
#include "stm32g0xx_ll_tim.h"
#include "stm32g0xx_ll_usart.h"
#include "stm32g0xx_ll_gpio.h"

#if defined(USE_FULL_ASSERT)
#include "stm32_assert.h"
#endif /* USE_FULL_ASSERT */

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define LED_RUN_Pin LL_GPIO_PIN_0
#define LED_RUN_GPIO_Port GPIOA
#define OUTPUT_01_Pin LL_GPIO_PIN_1
#define OUTPUT_01_GPIO_Port GPIOA
#define OUTPUT_02_Pin LL_GPIO_PIN_2
#define OUTPUT_02_GPIO_Port GPIOA
#define OUTPUT_03_Pin LL_GPIO_PIN_3
#define OUTPUT_03_GPIO_Port GPIOA
#define D12_INT_Pin LL_GPIO_PIN_4
#define D12_INT_GPIO_Port GPIOA
#define OUTPUT_05_Pin LL_GPIO_PIN_5
#define OUTPUT_05_GPIO_Port GPIOA
#define OUTPUT_06_Pin LL_GPIO_PIN_6
#define OUTPUT_06_GPIO_Port GPIOA
#define OUTPUT_08_Pin LL_GPIO_PIN_7
#define OUTPUT_08_GPIO_Port GPIOA
#define OUTPUT_07_Pin LL_GPIO_PIN_0
#define OUTPUT_07_GPIO_Port GPIOB
#define OUTPUT_04_Pin LL_GPIO_PIN_1
#define OUTPUT_04_GPIO_Port GPIOB
#define NTC_01_Pin LL_GPIO_PIN_2
#define NTC_01_GPIO_Port GPIOB
#define INPUT_03_Pin LL_GPIO_PIN_10
#define INPUT_03_GPIO_Port GPIOB
#define INPUT_02_Pin LL_GPIO_PIN_11
#define INPUT_02_GPIO_Port GPIOB
#define INPUT_01_Pin LL_GPIO_PIN_12
#define INPUT_01_GPIO_Port GPIOB
#define KEY_01_Pin LL_GPIO_PIN_13
#define KEY_01_GPIO_Port GPIOB
#define KEY_02_Pin LL_GPIO_PIN_14
#define KEY_02_GPIO_Port GPIOB
#define KEY_03_Pin LL_GPIO_PIN_15
#define KEY_03_GPIO_Port GPIOB
#define DS_CLK_Pin LL_GPIO_PIN_8
#define DS_CLK_GPIO_Port GPIOA
#define DS_DAT_Pin LL_GPIO_PIN_9
#define DS_DAT_GPIO_Port GPIOA
#define DS_RST_Pin LL_GPIO_PIN_6
#define DS_RST_GPIO_Port GPIOC
#define BEEP_Pin LL_GPIO_PIN_7
#define BEEP_GPIO_Port GPIOC
#define OLED_SCL_Pin LL_GPIO_PIN_8
#define OLED_SCL_GPIO_Port GPIOB
#define OLED_SDA_Pin LL_GPIO_PIN_9
#define OLED_SDA_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
